package models

type ArticleCate struct {
	Id      int       `json:"id"`
	Title   string    `json:"title"`
	State   int       `json:"state"`
	Article []Article `gorm:"foreignKey:CateId"`
}

// 多对多 `gorm:"many2many:CateId;"`

func (ArticleCate) TableName() string {
	return "article_cate"
}
